const Router = require("koa-router");
const verify_token = new Router();
const bodyparser = require("koa-bodyparser");

const auth = require("../middleware/auth");

//! 调用下面这个中间件，就可以拿到前端post过来的数据
verify_token.use(bodyparser());

verify_token.get("/", auth, async (ctx) => {
  ctx.body = {
    name: "access_token",
    test: 666,
  };
});

module.exports = verify_token;
